package com.coolingme.f03_abstractfactory.factory;

import com.coolingme.f03_abstractfactory.ICourse;
import com.coolingme.f03_abstractfactory.INote;
import com.coolingme.f03_abstractfactory.JavaCourse;
import com.coolingme.f03_abstractfactory.JavaNote;

/**
 * Java抽象工厂
 *
 * @author wangyue
 * @date 2020/9/17 17:36
 */
public class JavaCourseFactory implements ICourseFactory {
    @Override
    public ICourse createCourse() {
        return new JavaCourse();
    }

    @Override
    public INote createNote() {
        return new JavaNote();
    }
}
